package com.hdoit.kylin.logical.document.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Transient;
import javax.sql.CommonDataSource;

import com.tennetcn.common.aop.CommonApplicationContextUtil;
import com.tennetcn.common.enums.pub.YesOrNoInteger;
import com.tennetcn.common.message.LoginModel;
import com.tennetcn.common.message.ModelBase;
import com.tennetcn.common.utils.DateUtils;
import com.tennetcn.component.web.SessionWebFactory;
/**
 * @author      guoshuren
 * @email       
 * @createtime  2018年02月01日 20:05:41
 * @comment
 */
@Entity
@Table(name="data_reportcatalog")
public class ReportCataLog extends ModelBase{
    //序号
    @Id
    @Column(name="id")
    private String id;
    
    @Column(name="reportName")
    private String reportName;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建者ID
    @Column(name="createUserId")
    private String createUserId;

    //创建者名称
    @Column(name="createUserName")
    private String createUserName;

    //文档ID
    @Column(name="UUID")
    private String UUID;
    
    @Column(name="fileName")
    private String fileName;
    
    //公开标记
    @Column(name="publicMark")
    private int publicMark;

    @Column(name="reportType")
    private String reportType;
    
    @Column(name="deleteMark")
    private int deleteMark;

    @Transient
    private String shareIds;
    
    @Column(name="comments")
    private String comments;
    
    public ReportCataLog() {
    	LoginModel loginModel = CommonApplicationContextUtil.getCurrentContext().getBean(SessionWebFactory.class).getCurrentLogin();
    	this.setCreateUserId(loginModel.getLoginId());
    	this.setCreateDate(DateUtils.getCurrent());
    	this.setCreateUserName(loginModel.getLoginName());
    	this.setDeleteMark(YesOrNoInteger.no);
	}
    public String getShareIds() {
		return shareIds;
	}
	public void setShareIds(String shareIds) {
		this.shareIds = shareIds;
	}
	public String getId(){
        return this.id;
    }
    public void setId(String id){
         this.id=id;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public String getUUID(){
        return this.UUID;
    }
    public void setUUID(String UUID){
         this.UUID=UUID;
    }

    public int getPublicMark(){
        return this.publicMark;
    }
    public void setPublicMark(int publicMark){
         this.publicMark=publicMark;
    }
	public String getReportName() {
		return reportName;
	}
	public void setReportName(String reportName) {
		this.reportName = reportName;
	}
	public String getReportType() {
		return reportType;
	}
	public void setReportType(String reportType) {
		this.reportType = reportType;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public int getDeleteMark() {
		return deleteMark;
	}
	public void setDeleteMark(int deleteMark) {
		this.deleteMark = deleteMark;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}